<?php $sep = ''; foreach ($blog_post->getCategories() as $category) : ?>
  <?php echo $sep.link_to($category->getName(), 'blog_category_edit', $category) ?>
<?php $sep = ' - '; endforeach ?>